package com.jz.netthings.bloodsources.service;

import com.jz.netthings.application.bodyCheck.bean.MyPage;
import com.jz.netthings.bloodsources.bean.XyLink;
import com.jz.netthings.bloodsources.bean.XyRemind;
import com.baomidou.mybatisplus.service.IService;
import com.jz.netthings.exception.AdscmSystemException;
import com.jz.netthings.security.utils.Token;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 献浆提醒记录 服务类
 * </p>
 *
 * @author 张凡
 * @since 2019-08-03
 */
public interface XyRemindService extends IService<XyRemind> {
    /**
     * 存储提醒消息
     * @param xyRemindList
     * @param token
     * @return
     * @throws AdscmSystemException
     */
    Boolean insertXyRemindInfo(List<XyRemind> xyRemindList, Token token)throws AdscmSystemException;

    /**
     * 条件查询相关数据
     * @param request
     * @param overRemindTimeLess
     * @param overRemindTimeGreater
     * @param remindDateLess
     * @param remindDateGreater
     * @param remindNurseName
     * @param remindProviderName
     * @param currentPage
     * @param pageSize
     * @return
     * @throws AdscmSystemException
     */
    MyPage<XyRemind>queryByCondition(HttpServletRequest request,
                                String overRemindTimeLess ,
                                String overRemindTimeGreater ,
                                String remindDateLess,
                                String remindDateGreater,
                                String remindNurseName,
                                String remindProviderName,
                                Integer remindStatus,
                                String currentPage,
                                String pageSize) throws AdscmSystemException;

    /**
     * 修改提醒信息
     * @param xyRemind
     * @return
     * @throws AdscmSystemException
     */
    Boolean updateXyRemindInfo(XyRemind xyRemind)throws AdscmSystemException;
    List<XyRemind> loadXyRemindToCache()throws AdscmSystemException;
}
